﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace MoodleDesktop
{
    public partial class SelectingSource : Form
    {
        public SelectingSource()
        {
            InitializeComponent();
        }

        private void pictureBox1_MouseHover(object sender, EventArgs e)
        {
            Cursor = Cursors.Hand;
            pictureBox1.BackColor = Color.Red;
        }

        private void pictureBox1_MouseLeave(object sender, EventArgs e)
        {
            pictureBox1.BackColor = Color.Black;
        }

        private void pictureBox1_MouseDown(object sender, MouseEventArgs e)
        {
            pictureBox1.BackColor = Color.DarkRed;
        }

        private void pictureBox1_MouseUp(object sender, MouseEventArgs e)
        {
            pictureBox1.BackColor = Color.Black;
        }

        private void pictureBox1_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void pictureBox2_MouseHover(object sender, EventArgs e)
        {
            pictureBox2.Image = Image.FromHbitmap(Resource1.btnDone_hover.GetHbitmap());
        }

        private void pictureBox2_MouseLeave(object sender, EventArgs e)
        {
            pictureBox2.Image = Image.FromHbitmap(Resource1.btnDone.GetHbitmap());
        }

        private void SelectingSource_Load(object sender, EventArgs e)
        {
            item1.Controls.Find("txt_content", true)[0].Text = "aihdoiash";
        }

        private void pictureBox2_Click(object sender, EventArgs e)
        {
            fmCalendar lich = new fmCalendar();
            lich.Show();
            this.Close();
        }
    }
}
